function save() {
	var editState = 0;
	if ("UPDATE" == method) {
		editState = 3;
	} else if ('INSERT' == method) {
		editState = 1;
	}
	$.ajax({
			url : RS.webPath + "/admin/activityDesign/addMod",
			type : 'post',
			data : 'editState=' + editState + '&method=' + method + '&name=' + $('#name').val()
					+ "&discription=" + $('#discription').val() + "&id=" + id,
			dataType : 'json',
			success : function(data) {
				if (data.status == 1) {
					parent.layer.alert('提交成功', function(index) {
						parent.layer.close(index);
						window.location.href = RS.webPath + "/admin/rsActivitiExt";
					});
				} else {
					parent.layer.alert('提交失败');
				}
			}
	});
}

$(function() {
	if ("UPDATE" == method) {
		RS.loadForm('editForm', retInfo);
	}
});
